package com.atguigu.srb.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 积分等级表
 * @TableName integral_grade
 */
@TableName(value ="integral_grade")
@Data
public class IntegralGrade implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 积分区间开始
     */
    @TableField(value = "integral_start")
    private Integer integralStart;

    /**
     * 积分区间结束
     */
    @TableField(value = "integral_end")
    private Integer integralEnd;

    /**
     * 借款额度
     */
    @TableField(value = "borrow_amount")
    private BigDecimal borrowAmount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}